package com.zuijiajiao.servlab.databaseWEB.DAO;

import java.io.Serializable;
import java.util.List;

import com.zuijiajiao.servlab.databaseWEB.DTO.User;

public interface UserDAO {
	
	public void delete(User user) throws ClassNotFoundException;
	public void update(User user) throws ClassNotFoundException;
	public  List<User> findAll(String name,String password) throws ClassNotFoundException;
	public List<User> findAll() throws ClassNotFoundException;
	
	public User findByNameAndPassword(String name,String password) throws ClassNotFoundException;
	public Serializable save(User user) throws ClassNotFoundException;
	public User get(Serializable id) throws ClassNotFoundException;
}
